@extends('admin.layout')
@section('content')
@section('title',$title)
<style type="text/css">
    .box-body img{
        width: 100%;
        height: 100%;
    }

</style>
<div class="row" style="margin-left:230px; background-color:white;">
                <div class="col-md-8" background>
                    <!-- Box Comment -->
                    <div class="box box-widget">
                        <div class='box-header with-border'>
                            <div class='user-block'>
                                <img class='img-circle' src="{{asset($data -> upic)}}" alt='user image'>
                                <span class='username'>{{$data -> uid -> name}}</span>
                                <span class='description'>{{$data -> created_at}}</span>
                            </div><!-- /.user-block -->
                           
                        </div><!-- /.box-header -->
                        <div class='box-body' style="width:800px" >
                            {!! $data -> fmpost!!}
                        </div><!-- /.box-body -->
                         <div class='box-footer box-comments'>
                            @foreach($pldata as $row)
                            <div class='box-comment'>
                                <!-- User image -->
                                <img class='img-circle img-sm' src="{{asset($row -> upic)}}" alt='user image'>
                                <div class='comment-text'>
                                      <span class="username">
                                        {{ $row -> uname}}
                                        <span class='text-muted pull-right'>{{$row-> created_at}}</span>
                                      </span><!-- /.username -->
                                        {{$row -> pcontext}}  <span class='text-muted pull-right'><a onclick="return confirm('确认要删除吗?');"  href="{{ url('/admin/forum/pldel') }}/{{ $row -> id }}"><button>删除</button></a></span>        
                                </div><!-- /.comment-text -->
                            </div><!-- /.box-comment -->
                            @endforeach
                        </div><!-- /.box-footer -->
                        </div><!-- /.box-footer -->
                    </div><!-- /.box -->
                </div><!-- /.col -->
                
            </div><!-- /.row -->
@endsection